﻿using System;
using System.Collections.Generic;

namespace yacomp.helpers
{
    internal partial class helper
    {
        public static void CollectToStack<T>(Stack<T> stack, ICollection<T> collect)
        {
            foreach (var item in collect) stack.Push(item);
        }
    }
}
